

<script type="text/javascript" src="__PUBLIC__/Js/jquery.artDialog.js?skin=default"></script>
    <load href="__PUBLIC__/Js/iframeTools.js"/>
    <load href="__PUBLIC__/Js/my.js"/>
    <load href="__PUBLIC__/Js/swfupload.js"/>  
 	<script src="__PUBLIC__/Js/jquery.validate.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/MyDate/WdatePicker.js"></script>
    <script type="text/javascript">
	
var APP	 =	 '__APP__';
var ROOT =	 '__ROOT__';
var PUBLIC = '__PUBLIC__';
</script>

<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					 uploadJson : "index.php?g=User&m=Upload&a=index",//图片上传后的处理地址
                    //fileManagerJson : 'Public/js/kindeditor/php/file_manager_json.php',
					allowFileManager : true
				});
				//上传首页推荐图
				K('#up_tuijian').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#thumb').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#thumb').val(url);
								 document.getElementById("thumb_pic").src=url;
								
								editor.hideDialog();
							}
						});
					});
				});
				
				//上传设计图
				K('#up_sheji').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							clickFn : function(url, title, width, height, border, align) {
								var div = K('#pics_images');
								
								div.append('<input class="input-text" type="hidden" value="'+url+'" name="pics[]" size="50">');
								document.getElementById("shejitu").src=url;
								editor.hideDialog();
							}
						});
					});
				});
				
				
				//批量上传设计图
				K('#J_selectImage').click(function() {
					editor.loadPlugin('multiimage', function() {
						editor.plugin.multiImageDialog({
							clickFn : function(urlList) {
								var div = K('#pics_images');
								
								K.each(urlList, function(i, data) {
									div.append('<input  name="'+i+'"class="input-text" type="hidden" value="'+data.url+'" name="pics[]" size="50">');
								});
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
<form method='post'  id="myform2" action="{:URL('User-Product/save')}">
                 <input type="hidden" name="id"  value="{$list.id}"/>
<div class="wind_content1R">
      <span class="wind_content1Rspan">上传商品</span>
      <ul class="wind_UPL1" style="float:left;">
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;商品名称：</span>
            <dd><input type="text" name="title"   value="{$list['title']}"  validate=" required:true"/></dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;详细：</span>
           <dd>
               <textarea class="wind_textar2" name="content" >{$list.content}</textarea>
               </textarea></dd>
        </li>
       </ul>
      <div class="wind_UPsubmit" style="width:510px;height:auto;float:right;margin-top:25px;" >
        <div style="width:100%;height:auto;">
          <div class="wind_UPsubmits1"><img id="thumb_pic" class="wind_UPsubmits1" src="{$list.thumb}" /></div>
          <ul class="wind_UPsubmits2">
          <input type="hidden" id="thumb"  name="thumb" value="{$list.thumb}" class="input-text" />
           <li><a href="javascript:"><span id="up_tuijian" class="wind_UPsubmits3">上传主图</span></a></li>
           <li>（建议尺寸为367*220）</li>
          </ul>
          <div style="clear:both;"></div>
        </div>
         <p style="margin-top:20px;"><span style="color:red;">* 请勿上传</span><br/>
              有广告性质的水印低质量的图片
        </p>
      </div>
      <div style="clear:both;"></div>

      <input type="submit" value="发布作品" class="wind_subm1" />
    </div>
    <div style="clear:both;margin-bottom:20px;"></div>
  </div>
</div>

<div class="clear:both;"></div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                